home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2005 November
/
WNnov2005.iso
/
Windows
/
Indispensables
/
Movie Collection
/
MovieCollection5403.exe
/
{app}
/
php5
/
replace.class.php
< prev
next >
Wrap
PHP Script
|
2005-02-21
|
863b
|
25 lines
<?php
require_once('params.class.php');
class TmcXslReplace
{
private $Fxml = '';
function __construct($Axml)
{
$this->Fxml = $Axml;
}
function processReplace()
{
$this->Fxml = str_replace('href="index"', 'href="index'.$_SESSION["mc_params"]->getPhpExtension().'"', $this->Fxml);
$this->Fxml = str_replace('action="films"', 'action="films'.$_SESSION["mc_params"]->getPhpExtension().'"', $this->Fxml);
$this->Fxml = str_replace('href="films"', 'href="films'.$_SESSION["mc_params"]->getPhpExtension().'"', $this->Fxml);
$this->Fxml = str_replace('film?', 'film'.$_SESSION["mc_params"]->getPhpExtension().'?', $this->Fxml);
$this->Fxml = str_replace('getimg?idx=', 'getimg'.$_SESSION["mc_params"]->getPhpExtension().'?idx=', $this->Fxml);
return $this->Fxml;
}
}
?>